package com.mlnx.work.dao.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mlnx.work.entity.Department;
import com.mlnx.work.pojo.form.DepartmentFilterForm;
import com.mlnx.work.pojo.vo.DepartmentVo;
import com.mlnx.work.pojo.vo.SelfDepartmentVo;

import org.apache.ibatis.annotations.Param;

/**
 * author name: amanda.shan
 * create time: 2020-12-28 16:58:01
 */ 
public interface DepartmentMapper extends BaseMapper<Department>{

    Department selectByTaskId(Integer taskId);

    Page<DepartmentVo> listDepartmentVo(Page<DepartmentVo> page, @Param("filter") DepartmentFilterForm filter);

    SelfDepartmentVo selectDepartmentVo(@Param("deptId") Integer deptId);
}

